package com.itheima.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author tang
 * @date 2022/11/22 14:07
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageBean<T> {
    private static final long serialVersionUID = 8545996863226528798L;
    protected List<T> records;
    protected Integer total;

    protected String name;

    public PageBean(List<T> records, Integer total) {
        this.records = records;
        this.total = total;
    }
}
